package com.fesine.batch.dto;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 类描述
 * @author: Administrator
 * @createTime:2016/7/22 17:40
 * @update:修改内容
 * @author: Administrator
 * @updateTime:2016/7/22 17:40
 */
public class BatchScheduleGroupDTO implements Comparable<BatchScheduleGroupDTO>,Serializable {

    private static final long serialVersionUID = 7148660584338525496L;
    private String id;
    private String groupId;
    private Date prevFireTime;
    private Date nextFireTime;
    private Date startTime;
    private Date stopTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGroupId() {
        return groupId;
    }

    public void setGroupId(String groupId) {
        this.groupId = groupId;
    }


    public Date getNextFireTime() {
        return nextFireTime;
    }

    public void setNextFireTime(Date nextFireTime) {
        this.nextFireTime = nextFireTime;
    }

    public Date getPrevFireTime() {
        return prevFireTime;
    }

    public void setPrevFireTime(Date prevFireTime) {
        this.prevFireTime = prevFireTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getStopTime() {
        return stopTime;
    }

    public void setStopTime(Date stopTime) {
        this.stopTime = stopTime;
    }

    @Override
    public int compareTo(BatchScheduleGroupDTO o) {
        return this.nextFireTime.compareTo(o.nextFireTime);
    }
}
